import {
	createSSRApp
} from 'vue'
import App from './App'
import store from './store'
import globalEnv from "/env/index.js"
import Tools from '/uni_modules/uv-ui-tools/index.js'

import getFileIdToUrl from '/utils/getFileIdToUrl.js'

import "/uni_modules/uv-ui-tools/index.scss";

export function createApp() {
	const app = createSSRApp(App)
	app.use(store)
	app.use(Tools)
	app.config.globalProperties.env = globalEnv
	app.config.globalProperties.getFileIdToUrl = getFileIdToUrl

	return {
		app
	}
}

export const env = globalEnv